package com.mp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author ah.caixiaodong@aisino.com
 * @ClassName User
 * @Description TODO
 * @Date 2019/5/27 14:31
 */
@Data
@TableName("user")
public class User {

    //主键
    @TableId
    private Long id;

    //姓名
    @TableField("name")
    private String name;

    //年龄
    private Integer age;

    //电子邮箱
    private String email;

    //直属上级
    private Long managerId;

    //创建时间
    private LocalDateTime createTime;

    //备注
    //@TableField(exist = false)注解忽略字段序列化
    //@TableField(exist = false)
    //private String remark;
}
